<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta name="viewport" content="width=device-width"/>
	<script type="text/javascript" src="<%=path%>/appAlert/jquery-1.10.1.min.js"></script>
	<title>订单详情</title>
	<style type="text/css">
		body{margin: 0;padding: 0}
		.main{width: 100%;margin-left: auto;margin-right: auto;text-align: left;}
		.top{background-color:#f4f4f4;text-align: left;height: 30px;line-height: 30px;font-size: 14px }
		table{width: 100%;line-height: 30px;table-layout:fixed;font-size:14px;
			border-collapse:collapse;text-align: left}
		.xz{width: 100%}
		.xz td{text-align: center;height: 40px;line-height: 40px;font-size: 15px}
		.xz a{text-decoration: none;color: white;width: 100%;display: block;}
		#ddd{margin-bottom: 10px}
		#top{
			padding: 10px 0px 10px 10px;
		}
	</style>
</head>
<body>
<div class="main">

	<c:if test="${falg =='success'&& dwlx =='gljx'}">
		<h4 style="text-align:center;">付款成功</h4>
		<div class="top" id="top">商户单号：${ddno}</div>
		<div style="padding: 10px">金&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;额：${yf}</div>
		<div style="padding: 10px">已&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;付：${sf}</div>
		<div style="padding: 10px">所报校区：${xq}</div>
		<div style="padding: 10px">课&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;程：${kc}</div>
		<table class="xz">
			<tr>
				<td style="width: 100%;background-color:#4976dd;">
					<a href="javascript:void(0);" onClick="closebrower();">关闭</a>
				</td>
			</tr>
		</table>
	</c:if>
	<c:if test="${falg =='error'&& dwlx =='gljx'}">
		<h4 style="text-align:center;">付款失败</h4>
		<div class="top" id="top">商户单号：${ddno}</div>
		<div style="padding: 10px 10px 10px 0px">金额：${yf}</div>
		<div style="padding: 10px 10px 10px 0px">已付：${sf}</div>
		<table class="xz">
			<tr>
				<td style="width: 100%;background-color:#4976dd;">
					<a href="javascript:void(0);" onClick="closebrower();">关闭</a>
				</td>
			</tr>
		</table>
	</c:if>



</div>
</body>
<script>
    function closebrower(){
        //关闭支付回调的页面和浏览器
        //WeixinJSBridge.invoke('closeWindow',{},function(res){});
        var ua = navigator.userAgent.toLowerCase();
        if(ua.match(/MicroMessenger/i)=="micromessenger") {
            WeixinJSBridge.call('closeWindow');//微信
        } else if(ua.indexOf("alipay")!=-1){
            AlipayJSBridge.call('closeWebview');  //支付宝
        }else if(ua.indexOf("baidu")!=-1){
            BLightApp.closeWindow();//百度钱包
        }
    }
</script>
</html>